//
//  AboutUsViewController.m
//  沙哈拉FM
//
//  Created by dllo on 15/11/16.
//  Copyright © 2015年 S1mpl3. All rights reserved.
//

#import "AboutUsViewController.h"
#import "FitHeader.h"
#import "Model.h"
#import "BaseLabel.h"

@interface AboutUsViewController ()
@property(nonatomic, retain)UIImageView *backImageView;
@property(nonatomic, retain)BaseLabel *nameLabel;
@property(nonatomic, retain)BaseLabel *contentLabel;
@end

@implementation AboutUsViewController

-(void)viewWillAppear:(BOOL)animated{
    self.view.backgroundColor = [Model shareInstance].ViewColor;
    [self.navigationController.navigationBar setBarTintColor:[UIColor colorWithRed:0.84 green:0.23 blue:0 alpha:1]];
    [self.navigationController.navigationBar setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[Model shareInstance].TitleColor, NSForegroundColorAttributeName, nil]];
    _nameLabel.textColor = [Model shareInstance].TitleColor;
    _contentLabel.textColor = [Model shareInstance].TitleColor;

}


- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"关于我们";
    self.view.backgroundColor = [UIColor whiteColor];
    
    self.backImageView = [[UIImageView alloc]initWithFrame:CGRectMake(125 * FITWidth, 40 * FITHeight, 125 * FITWidth, 125 * FITHeight)];
    _backImageView.layer.masksToBounds = YES;
    _backImageView.layer.cornerRadius = 15 * FITWidth;
    _backImageView.image = [UIImage imageNamed:@"APP图标"];
    [self.view addSubview:_backImageView];
    
    self.nameLabel = [[BaseLabel alloc]initWithFrame:CGRectMake(0, 170 * FITHeight, 375 * FITWidth, 40 * FITHeight)];
    _nameLabel.text = @"沙哈拉FM";
    _nameLabel.textAlignment = 1;
    [self.view addSubview:_nameLabel];
    
    self.contentLabel = [[BaseLabel alloc]initWithFrame:CGRectMake(20 * FITWidth, 210 * FITHeight, 335 * FITWidth, 150 * FITHeight)];
    _contentLabel.numberOfLines = 0;
    _contentLabel.text = @"       沙哈拉FM是一个轻松创建个人电台，随时分享好声音的网络平台。在沙哈拉，无论新闻资讯、电视电台节目、音乐mp3、有声小说、英语、相声、评书，还是财经股票、教育培训、健康养生、社科人文、儿童故事，这世界有声的一切，沙哈拉应有尽有！让你：随时随地，听我想听！";
    _contentLabel.font = [UIFont systemFontOfSize:15 * FITWidth];
    [self.view addSubview:_contentLabel];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
